package myJs.basic344

import myJs.api.Api
import myJs.cps.Style
import myJs.myPkg.plotly._
import myJs.tool.Tool
import slinky.core.FunctionalComponent
import slinky.core.annotations.react
import slinky.core.facade.Hooks._
import slinky.web.html._

import scala.concurrent.ExecutionContext.Implicits.global


/**
 * Created by yz on 3/11/2020
 */
@react object ExpCp {

  case class Props(geneId: String, h2: Boolean)

  val component = FunctionalComponent[Props] { props =>

    object FTool {

    }

    if (props.h2) {
      ExpH2Cp(geneId = props.geneId)
    } else {
      TpmCp(geneId = props.geneId)
    }


  }

}



